  function huandeng(){
     huandengObj = new Object;

     huandengObj._window;        //信息窗口
     huandengObj.gundong = function(dhObj,left,time){
          dhObj.animate({left: left+'px'},time);
     }
     huandengObj.zc = function(span_data){
       var span_l   = span_data.obj_l;    //左滑动按钮
       var span_r   = span_data.obj_r;    //右滑动按钮
       var span_lk  = span_data.k;
       var span_lnk = span_data.nk;
       var bo_num   = span_data.bo_num;

	   ///左侧滑动
       span_r.mouseover(function(){
          $(this).css('cursor','default');
       }).mousedown(function(){

          var thisObj = $(this);
          var dhObj = span_lnk;
          var left = Number(dhObj.eq(0).get(0).style.left.replace('px',''));

          var fangjian = dhObj.eq(0).children('li');
          var fangjian_length = fangjian.length;
          var fangjian_width =  Number(fangjian.eq(0).width()+bo_num);
          var fangjian_zwidth = fangjian_width*fangjian_length;

          var kObj = span_lk;
          var kwidth = kObj.width();
          if(left != -(fangjian_zwidth-kwidth)){
             left = -(fangjian_zwidth-kwidth);

             var bfb = Math.abs(left)/(fangjian_zwidth-kwidth);

             if(bfb == 0){
                var time=1000;
             }else{
                var time = bfb*600;
             }

             huandengObj.gundong(dhObj,left,time);
          }
       }).mouseup(function(){

           var thisObj = $(this);
           var dhObj = span_lnk;
           var left = dhObj.eq(0).get(0).style.left;
               dhObj.each(function(){
                    $(this).get(0).style.left = left;
               });

               dhObj.stop();
       });

	   ///右侧滑动
       span_l.mouseover(function(){
          $(this).css('cursor','default');

       }).mousedown(function(){

           var thisObj = $(this);
           var dhObj = span_lnk;
           var left = Number(dhObj.eq(0).get(0).style.left.replace('px',''));

          var fangjian = dhObj.eq(0).children('li');
          var fangjian_length = fangjian.length;
          var fangjian_width =  Number(fangjian.eq(0).width()+bo_num);
          var fangjian_zwidth = fangjian_width*fangjian_length;

          var kObj = span_lk;
          var kwidth = kObj.width();

           if(left != 0){
             var bfb = Math.abs(left)/(fangjian_zwidth-kwidth);
             left = 0;
             var time = bfb*600;
             huandengObj.gundong(dhObj,left,time);
            }
       }).mouseup(function(){

           var thisObj = $(this);
           var dhObj = span_lnk;

           var left = dhObj.eq(0).get(0).style.left;
               dhObj.each(function(){
                    $(this).get(0).style.left = left;
               });
               dhObj.stop();

       });
  }
 return huandengObj;
}